From: | Simon Westerby |
Date: | 13 May 2001 at 19:40:21 |
Subject: | Re: BlitzII - Question of logic? |
Terje Maurset wrote:
> Could some one please explain to me why the first example fails???
>
> /If NOT v=10 or NOT V=32 : CP1=a : Goto FindEnd : EndIf/
> //
> /If v=10 OR v=32 : Else : CP1=a : Goto FindEnd : EndIf/
>
Its a question of the way the logic is evaluated..
Rather then the first line you should use
IF NOT (v=10 OR v=32) : CP1=a : ....
or
IF (NOT v=10) AND (NOT v=32) : CP1=a : ....]
-- ______________
Simon Westerby / 486 DX4 100 \
__________________/ SUSE LINUX 7.1 \_____________________
Amiga 1200/040@40 \ 16 Meg/4 Gig / AMD K6-2 3D/366
AmigaOS/Debian 2.2 \_______ ______/ SUSE LINUX 7.1/Win 98
2 / 32 Meg M / 10 Gig Disk | 192 Meg Mem / 17 Gig Disk
"Do you think I should get out more ?"
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list/-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list/-help@netsoc.ucd.ie